/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package canteen.sys.model.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author TNT
 */
@Entity
public class LoginMaster implements Serializable {

    @Id
    @GeneratedValue
    private int lId;
    @NotNull
    @Size(min = 5, max = 50, message = "User Name  must >=5 or <=50 character")
    @Column(length=50,unique=true)
    private String lName;
    @NotNull
    @Column(length=32)
    private String lPassword;
    @NotNull
    private String lType;
    @NotNull
    private boolean status;

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
    

    public LoginMaster() {
    }

    public LoginMaster(int lId, String lName, String lPassword, String lType, boolean status) {
        this.lId = lId;
        this.lName = lName;
        this.lPassword = lPassword;
        this.lType = lType;
        this.status = status;
    }

    public int getlId() {
        return lId;
    }

    public void setlId(int lId) {
        this.lId = lId;
    }

    public String getlName() {
        return lName;
    }

    public void setlName(String lName) {
        this.lName = lName;
    }

    public String getlPassword() {
        return lPassword;
    }

    public void setlPassword(String lPassword) {
        this.lPassword = lPassword;
    }

    public String getlType() {
        return lType;
    }

    public void setlType(String lType) {
        this.lType = lType;
    }
}
